import type { ListPageParams } from '../read/type';

export interface GetMicroclassListParams extends ListPageParams {
  oneCategoryId?: string;
  twoCategoryId?: number | undefined;
}

export interface GetMicroclassListResult {
  id: number;
  title: string;
  img: string;
  type: number;// 1-五商，2-专栏
  month: string;
  weeks: number;
  content: string;
  courseType: number; // 1-视频，2-音频
  progress: number; // 1-更新中，10-已完成
  status: number;
  vipFlag: string; // 0-未购买，1-已购买
}

export interface GetMicroclassDetailParams extends ListPageParams {
  courseId: string;
}

export interface GetMicroclassDetailResult {
  detailId: number;
  courseId: number;
  week: number;
  dayOfWeek: number;
  fileUrl: string;
  title: string;
  sortOrder: number;
  status: number;
  wisdomType: number; // 146-智商 147-情商 148-财商 149-逆商 150-语商
  progress: number;
  coverPic: string; // 封面
  [key: string]: any;
}

export interface getCategoryResult {
  categoryId: number | string; // 分类id
  children: Array<{
    categoryId: number; // 分类id
    name: string; // 分类名称
  }>;
}
